package com.ps.property;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@ApiModel(description = "点赞信息")
@Data
@NoArgsConstructor
public class TOtherLike {
  @ApiModelProperty(value = "点赞ID",required = true)
//  @NotBlank(message = "点赞id不能为空")
  private int id;

  @ApiModelProperty(value = "用户ID",required = true)
  @NotNull(message = "用户ID不能为空")
  private int userId;

  @ApiModelProperty(value = "关联编号",required = true)
  @NotBlank(message = "关联编号不能为空")
  private String likeRelevanceNumber;

  @ApiModelProperty(value = "点赞类型",required = true)
  @NotNull(message = "类型不能为空")
  private int likeRelevanceType;

  @ApiModelProperty(value = "点赞时间",required = true)
  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
  private Date likeCreateTime;

  @ApiModelProperty(value = "点赞更新时间",required = true)
  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
  private Date likeRefreshTime;
}
